# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=4
GCONF_DEBUG="no"

inherit gnome2 waf toolchain-funcs

DESCRIPTION="Val(a)IDE is an IDE for the Vala programming language"
HOMEPAGE="http://www.valaide.org/"
SRC_URI="http://launchpad.net/valide/trunk/${PV}/+download/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND="dev-db/sqlite:3
	>=dev-lang/vala-0.12.0
	>=dev-libs/gdl-2.28:1
	>=dev-libs/glib-2.18.0:2
	>=dev-libs/libunique-1.0.0:1
	>=dev-libs/libxml2-2.5.0:2
	>=x11-libs/gtk+-2.18.0:2
	>=x11-libs/gtksourceview-2.10:2.0"
DEPEND="${RDEPEND}"

DOCS="AUTHORS ChangeLog NEWS README TODO"

src_configure() {
	WCONF="${WCONF} --with-libdir=${EPREFIX}/usr/$(get_libdir)"

	waf_src_configure
}

pkg_postinst() {
	vala_pkg_postinst
	gnome2_pkg_postinst
}
